module.exports = app =>{
    //引用mongoose模块连接数据库
    const mongoose = require('mongoose')
    //连接mongodb数据库
    mongoose.connect('mongodb://localhost:27017/node-vue-moba',{ useNewUrlParser: true, useUnifiedTopology:true})
}